package com.sc.design.singleton.hungry;

/***
 * 饿汉模式
 */

class Emperor{
    private Emperor(){}
    private static final Emperor E = new Emperor();
    public static Emperor getInstance(){
        return E;
    }
    public  void say(){
        System.out.println("knee");
    }
}



